﻿using System.Text.Json.Serialization;

namespace RsCms.Application.Posts.Dto
{
    public class PostMetaDto
    {
        [JsonPropertyName("id")]
        public string Id { get; set; }=Guid.NewGuid().ToString("N");

        [JsonPropertyName("post_id")]
        public string PostId
        {
            get;set;
        }
        

        [JsonPropertyName("email_only")]
        public sbyte EmailOnly { get; set; }

        [JsonPropertyName("email_subject")]
        public string EmailSubject { get; set; } = "";

        [JsonPropertyName("feature_image_alt")]
        public string FeatureImageAlt { get; set; } = "";

        [JsonPropertyName("feature_image_caption")]
        public string FeatureImageCaption { get; set; } = "";

        [JsonPropertyName   ("frontmatter")]
        public string Frontmatter { get; set; } = "";

        [JsonPropertyName("meta_description")]
        public string MetaDescription { get; set; } = "";

        [JsonPropertyName("meta_title"  )]
        public string MetaTitle { get; set; } = "";

        [JsonPropertyName("og_description")]
        public string OgDescription { get; set; } = "";

        [JsonPropertyName   ("og_image")]
        public string OgImage { get; set; } = "";

        [JsonPropertyName   ("og_title")]
        public string OgTitle { get; set; } = "";

        [JsonPropertyName("twitter_description")]
        public string TwitterDescription { get; set; } = "";

        [JsonPropertyName("twitter_image")]
        public string TwitterImage { get; set; } = "";

        [JsonPropertyName("twitter_title")]
        public string TwitterTitle { get; set; } = "";
    }
}
